package com.gn.service.Impl;

import com.gn.dao.PL0CodeDao;
import com.gn.domain.PL0Code;
import com.gn.service.PL0Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PL0ServiceImpl implements PL0Service {
    @Autowired
    private PL0CodeDao pl0CodeDao;

    @Override
    public boolean save(PL0Code pl0_code) {
        pl0CodeDao.insert(pl0_code);
        return true;
    }

    @Override
    public List<PL0Code> select() {
        return pl0CodeDao.selectList(null);
    }
}
